<?php
namespace app\store\model;
use app\common\model\Signup as SignupModel;

class Signup extends SignupModel{

    /**
     * 获取报名列表
     * @param $params
     * @return \think\Paginator
     * @throws \think\exception\DbException
     */
    public function getList($params)
    {
        $filter = [];
        !empty($params['search']) && $filter['name|telephone|occupation'] = ['like', '%' . trim($params['search']) . '%'];
        return $this->order(['create_time' => 'desc'])
            ->where($filter)
            ->paginate(15, false, [
                'query' => request()->request()
            ]);

    }

}